package com.kucun.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kucun.Dao.BillmasterMapper;
import com.kucun.bean.Goods;
import com.kucun.bean.Page;
import com.kucun.bean.Billmaster;
import com.kucun.service.Billmasterservice;
import com.kucun.service.Userservice;
@Service
@Transactional 
public class Billmasterserviceimp implements Billmasterservice {

	@Resource
	private BillmasterMapper billmasterMapper;
	public boolean save(Billmaster record) {
		return billmasterMapper.insert(record);
	}

	public boolean update(Billmaster record) {
		return billmasterMapper.updateByPrimaryKey(record);
	}

	public boolean delete(String id) {
		return billmasterMapper.delete(id);
	}


	public Billmaster findById(int userid) {
		return billmasterMapper.selectByPrimaryKey(userid);
	}


	public List<Billmaster> findAll(Page page) {
		return (List<Billmaster>)billmasterMapper.findAll(page);
	}

	

	public Page getCount(Page page) {
		
		return billmasterMapper.getCount(page);
	}

	
	public List<Billmaster> query(Billmaster billmaster,int i,int rows) {
		return (List<Billmaster>)billmasterMapper.query(billmaster,i,rows);
	}

	public Page queryCount(Billmaster billmaster) {
		return billmasterMapper.queryCount(billmaster);
	}
	public Integer getid() {
		return billmasterMapper.getid();
	}

	public Page getCountOfOutOrder(Page page1) {
		return billmasterMapper.getCountOfOutOrder(page1);
	}

	public List<Billmaster> findAllOutofOrder(Page page1) {
		 return (List<Billmaster>)billmasterMapper.findAllOutofOrder(page1);
	}
}
